-- GENERATED SPELL FOR [Summoned Cabal Deathsworn] --


function spell0_19209(pUnit, Event) --@Black Cleave,n/a--
pUnit:FullCastSpellOnTarget(33480,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19209', 12000, 1)
end

function spell1_19209(pUnit, Event) --@Black Cleave,n/a--
pUnit:FullCastSpellOnTarget(38226,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19209', 12000, 1)
end

function spell2_19209(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_19209', 619, 1)
end

function spell3_19209(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19209', 2309, 1)
end

function Sorts_19209(pUnit, Event)
local choix_sorts_19209 = math.random(0, 3)
if choix_sorts_19209 == 0 then
pUnit:RegisterEvent('spell0_19209', 1, 1)
end
if choix_sorts_19209 == 1 then
pUnit:RegisterEvent('spell1_19209', 1, 1)
end
if choix_sorts_19209 == 2 then
pUnit:RegisterEvent('spell2_19209', 1, 1)
end
if choix_sorts_19209 == 3 then
pUnit:RegisterEvent('spell3_19209', 1, 1)
end
end

function mob19209_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19209', math.random(1500, 3000), 1)
end

function mob19209_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19209_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19209_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19209, 1, 'mob19209_Action')
RegisterUnitEvent(19209, 2, 'mob19209_Leave')
RegisterUnitEvent(19209, 3, 'mob19209_Kill')
RegisterUnitEvent(19209, 4, 'mob19209_Die')
